/* 浮动登录面板动画 */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 认证页面容器 */
.auth-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center; 
  align-items: center;
  background: #DFE9F9;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  perspective: 1000px;
}

/* 背景装饰 */
.auth-background {
  position: absolute;
  top: -10%; 
  left: -10%; 
  width: 120%; 
  height: 120%; 
  background-size: cover;
  background-repeat: no-repeat;
  animation: backgroundMove 20s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: background-image 1s ease-in-out;
}

@keyframes backgroundMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-5%, 5%);
  }
  50% {
    transform: translate(5%, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 0, 0);
}

.slider-container {
  width: 100%;
  max-width: 500px; 
  height: 700px;    
  margin-left: 90px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  
  /* 添加浮动动画 */
  opacity: 0;
  animation: floatUp 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.3s;
}

.slider-inner {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
}

.slider-inner.show-login {
  transform: translateX(0);
}

.slider-inner.show-register {
  transform: translateX(-50%);
}

.form-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  box-sizing: border-box;
  background: #fff; 
  transition: all 0.6s cubic-bezier(0.77,0,0.175,1);
  font-size: 22px;
}

/* 登录面板特殊圆角 */
.slider-inner.show-login .form-panel:first-child {
  border-radius: 10px 0 0 10px;
}

/* 注册面板特殊圆角 */
.slider-inner.show-register .form-panel:last-child {
  border-radius: 0 10px 10px 0;
}

/* 登录按钮 */
.form-panel:first-child button {
  background: linear-gradient(to right, rgba(255,65,108,0.6), rgba(255,75,43,0.6));
  border-radius: 16px;
  height: 44px;
}
.form-panel:first-child button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 65, 108, 0.2), 0 1.5px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 注册按钮 */
.form-panel:last-child button {
  background: linear-gradient(to right, rgba(102,126,234,0.6), rgba(118,75,162,0.6));
  border-radius: 16px;
  height: 44px;
}
.form-panel:last-child button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2), 0 1.5px 6px rgba(0,0,0,0.08);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 优化后的Logo区域 - 紫粉色系版本 */
.auth-logo {
  text-align: center;
  margin-bottom: 40px;
  transform: translate3d(0, 0, 0);
}

.auth-logo h1 {
  font-size: 42px; /* 增大的主标题字体 */
  margin: 0 0 12px 0;
  /* 紫粉色渐变 */
  background: linear-gradient(135deg, #d86fe8 0%, #ff6ec7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transform: translate3d(0, 0, 0);
  /* 匹配紫粉色的发光效果 */
  text-shadow: 0 0 12px rgba(255, 110, 199, 0.25);
}

.auth-logo p {
  /* 与紫粉渐变协调的颜色 */
  color: #c054cf;
  margin: 0;
  font-size: 24px; /* 增大的副标题字体 */
  transform: translate3d(0, 0, 0);
  /* 渐变过渡效果增强现代感 */
  transition: color 0.4s ease;
}

/* 悬停时微调副标题颜色 */
.auth-logo:hover p {
  color: #a846b6;
}

/* 链接样式 */
.auth-links {
  text-align: center;
  margin-top: 16px;
  color: #666;
  font-size: 18px;
  transform: translate3d(0, 0, 0);
}

.auth-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.switch-text {
  font-size: 14px;
  margin-top: 20px;
  color: #555;
}

.switch-text a {
  color: #ff4b2b;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

.error-message {
  color: #ff4b2b;
  background: rgba(255, 75, 43, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 75, 43, 0.2);
}

.remember-forgot, .terms {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 13px;
  margin: 10px 0;
}

.remember-forgot label, .terms label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.remember-forgot a, .terms a {
  color: #ff4b2b;
  text-decoration: none;
}

.remember-forgot a:hover, .terms a:hover {
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .slider-container {
    height: 600px;
  }
  
  .form-panel {
    padding: 0 25px;
  }
  
  .auth-logo h1 {
    font-size: 28px;
  }
}

/* 激活面板的半透明样式 */
.form-panel.active-panel {
  background: linear-gradient(135deg, rgba(248, 228, 232, 0.8) 0%, rgba(240, 212, 224, 0.8) 100%);
  box-shadow: inset 0 0 20px rgba(255, 182, 193, 0.25); 
}

/* 非激活面板的半透明样式 */
.form-panel:not(.active-panel) {
  background: linear-gradient(135deg, rgba(228, 241, 248, 0.8) 0%, rgba(212, 230, 240, 0.8) 100%);
  box-shadow: inset 0 0 20px rgba(173, 216, 230, 0.25); 
}

.auth-left-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40vw; /* 或固定宽度，如400px */
  height: 100%;
}
.auth-background {
  z-index: 1;
}
.auth-left-banner, .slider-container {
  position: relative;
  z-index: 2;
}

/* 文字浮动动画 - 增强阴影效果 */
@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    text-shadow: 
      0 0 0 rgba(0,0,0,0),
      0 0 0 rgba(91, 192, 235, 0);
  }
  25% {
    transform: translateY(-15px) rotate(-1deg) translateZ(10px);
    text-shadow: 
      0 10px 20px rgba(0,0,0,0.15),
      0 0 20px rgba(91, 192, 235, 0.5),
      0 0 40px rgba(91, 192, 235, 0.3);
  }
  50% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    text-shadow: 
      0 0 0 rgba(0,0,0,0),
      0 0 0 rgba(91, 192, 235, 0);
  }
  75% {
    transform: translateY(-8px) rotate(1deg) translateZ(5px);
    text-shadow: 
      0 5px 15px rgba(0,0,0,0.1),
      0 0 15px rgba(91, 192, 235, 0.4),
      0 0 30px rgba(91, 192, 235, 0.2);
  }
}

/* 文字发光动画 - 增强阴影效果 */
@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(91, 192, 235, 0)) 
            drop-shadow(0 0 0 rgba(58, 80, 107, 0));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(91, 192, 235, 0.6)) 
            drop-shadow(0 0 30px rgba(58, 80, 107, 0.4))
            drop-shadow(0 0 60px rgba(58, 80, 107, 0.2));
  }
}

/* 文字描边动画 */
@keyframes textStroke {
  0%, 100% {
    -webkit-text-stroke: 0px rgba(255,255,255,0);
    text-shadow: none;
  }
  50% {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    text-shadow: 
      0 0 5px rgba(255, 255, 255, 0.3),
      0 0 15px rgba(255, 255, 255, 0.2);
  }
}

/* 3D投影效果 */
@keyframes deepShadow {
  0%, 100% {
    text-shadow: 
      0 1px 0 #ccc, 
      0 2px 0 #c9c9c9,
      0 3px 0 #bbb,
      0 4px 0 #b9b9b9,
      0 5px 0 #aaa,
      0 6px 1px rgba(0,0,0,0.1),
      0 0 5px rgba(0,0,0,0.1),
      0 1px 3px rgba(0,0,0,0.3),
      0 3px 5px rgba(0,0,0,0.2),
      0 5px 10px rgba(0,0,0,0.25);
  }
  50% {
    text-shadow: 
      0 1px 0 #ccc, 
      0 2px 0 #c9c9c9,
      0 3px 0 #bbb,
      0 4px 0 #b9b9b9,
      0 5px 0 #aaa,
      0 6px 20px rgba(0,0,0,0.2),
      0 0 15px rgba(0,0,0,0.2),
      0 1px 10px rgba(0,0,0,0.4),
      0 3px 15px rgba(0,0,0,0.3),
      0 10px 20px rgba(0,0,0,0.35);
  }
}

/* 新增粒子效果 */
@keyframes particleEffect {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.auth-left-title {
  white-space: nowrap;
  font-size: 120px;
  margin-left: -30px;
  margin-top: -80px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #5BC0EB 0%, #3A506B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  
  /* 新增动画效果 */
  animation: 
    titleFloat 8s ease-in-out infinite,
    textGlow 6s ease-in-out infinite,
    textStroke 4s ease-in-out infinite,
    deepShadow 7s ease-in-out infinite;
  
  /* 3D效果增强 */
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform, filter, text-shadow;
  
  /* 初始阴影设置 */
  text-shadow: 
    0 1px 0 #ccc, 
    0 2px 0 #c9c9c9,
    0 3px 0 #bbb,
    0 4px 0 #b9b9b9,
    0 5px 0 #aaa,
    0 6px 1px rgba(0,0,0,0.1),
    0 0 5px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.3),
    0 3px 5px rgba(0,0,0,0.2),
    0 5px 10px rgba(0,0,0,0.25);
    
  /* 粒子效果背景 */
  position: relative;
  
  /* 新增白色背景层 */
  padding: 20px 40px;
  border-radius: 20px;
}

/* 新增：灰蓝色半透明背景层 */
.auth-left-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(223, 233, 249, 0.30); /* 半透明灰蓝色背景 */
  backdrop-filter: blur(8px); /* 毛玻璃效果 */
  border-radius: 20px; /* 与标题的border-radius匹配 */
  z-index: -1; /* 放在文字下方 */
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.3) inset, /* 内发光 */
    0 0 40px rgba(91, 192, 235, 0.2); /* 外发光 */
  animation: bgPulse 5s ease-in-out infinite;
}

/* 新增：背景层脉动动画 */
@keyframes bgPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

/* 粒子效果伪元素 */
.auth-left-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  z-index: -2; /* 放在背景层下方 */
  background: 
    radial-gradient(circle at 20% 30%, rgba(91, 192, 235, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(58, 80, 107, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
  background-size: 300% 300%;
  animation: particleEffect 15s linear infinite;
  border-radius: 30px; /* 增大圆角以匹配新尺寸 */
  filter: blur(10px);
  opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .auth-left-title {
    font-size: 100px;
    padding: 15px 30px;
  }
}

@media (max-width: 992px) {
  .auth-left-title {
    font-size: 80px;
    margin-left: -20px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .auth-left-title {
    font-size: 60px;
    margin-left: -15px;
    padding: 10px 20px;
  }
  
  .auth-left-title::before {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}
@media (max-width: 900px) {
  .auth-left-banner { display: none; }
}